Repository navigation
Conversation
Expire asynchronous ownership proofs on host pressure changes without advancing allocation observation epochs. This also covers an ABA pressure cycle whose final state is unchanged. Let queue slabs with fully charged backing use their reserved future fault cost. Classify mappings present during aggregate startup exclusion as potentially excluded, atomically with the exclusion; later mappings keep their own full backing coverage across RSS disable/re-enable. Validate the same regressions against 9464bd6 and the fixed runtime, including real Linux page loss and queue allocations. The fixed build passes 124 focused cases, 70,560 lifecycle schedules, 39 ASan/UBSan cases, 25 macOS consumer compile checks and four changed-unit static checks.
Separate native growth priority from RSS/proof waiter notification. Use one admission loop for fixed allocations, prepaid process backing and retained mapping reuse, checking full RSS demand and an elapsed-time retry deadline. Keep multi-batch reclaim working across logical release and backing discard. Verify 103 admission boundary combinations, delayed proof with concurrent required pages, retry pacing and retained reuse. Four controls fail or time out against 9afbab9 and pass with the unified implementation.
Keep maintenance admission nonblocking while allowing idle backing to be released. Restore ownership proof after discard expires the RSS observation, and prevent recursive owner reclaim for both waiting and nonwaiting calls. Cover seven allocation paths across idle/full native capacity and enabled/ disabled RSS, including real aligned, vector, mapped and retained allocators. The identical regression fails on 7aee126 and passes with this change.
richyreachy
reviewed
Nov 17, 2026
richyreachy
reviewed
Nov 17, 2026
richyreachy
reviewed
Nov 18, 2026
richyreachy
approved these changes
Nov 18, 2026
iaojnh
added a commit
to iaojnh/zvec
that referenced
this pull request
Nov 18, 2026
Adopt the shared-budget and RSS foundation from alibaba#910, keep Buffer Pool ownership and bounded I/O behavior at its consumers, and migrate the non-vector benchmarks to their new directory. Preserve mandatory admission progress when live owners release capacity in stages. Validate the merge with the native Buffer Pool, storage, Flat, IVF and DiskANN suites.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Shared-cache budgets currently omit allocator bookkeeping, so the configured limit can understate retained native memory. Managed workspaces also need a common ownership-aware RSS admission path.
This PR adds the shared budget and RSS admission foundation:
RSS admission is opt-in and remains a sampled soft target.
Validation
6f09fb78, covering Linux/musl, macOS, Windows, Android and iOS.The branch is synchronized with current upstream
main; the Snowball workaround from #907 is reused unchanged.